package com.falcon.authority.service;


import com.falcon.authority.domain.po.RoleApiPO;
import com.falcon.authority.domain.po.RoleMenuPO;
import com.falcon.authority.domain.req.RoleApiUpdateRequest;
import com.falcon.authority.domain.req.RoleMenuUpdateRequest;
import com.falcon.authority.domain.po.RolePO;
import com.falcon.core.service.IBaseService;

import java.util.List;

public interface IRoleService  extends IBaseService<RolePO> {

    List<RolePO> queryRoleListByUserId(Long id);

    List<RoleApiPO> queryRoleApis(Long roleId);

    List<RoleMenuPO> queryRoleMenus(Long roleId);

    void updateRoleApis(RoleApiUpdateRequest request);

    void updateRoleMenus(RoleMenuUpdateRequest request);

}

